package com.doeis.manage.bean;

import java.sql.Timestamp;

import com.doeis.core.annotation.Associate;
import com.doeis.core.annotation.Table;
import com.doeis.core.bean.Entity;

@Table(name = "user")
public class User extends Entity {
	private static final long serialVersionUID = 1L;
	private Integer id;
	private String username;
	private Integer groupid;
	private String name;
	private String avatar;
	private String avatar_small;
	private String email;
	private String password;
	private String cookie_token;
	private Timestamp cookie_token_expire;
	private Timestamp reg_time;
	private Timestamp last_login_time;

	@Associate
	public static String tableName = "user";

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Integer getGroupid() {
		return groupid;
	}

	public void setGroupid(Integer groupid) {
		this.groupid = groupid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getAvatar_small() {
		return avatar_small;
	}

	public void setAvatar_small(String avatar_small) {
		this.avatar_small = avatar_small;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getCookie_token() {
		return cookie_token;
	}

	public void setCookie_token(String cookie_token) {
		this.cookie_token = cookie_token;
	}

	public Timestamp getCookie_token_expire() {
		return cookie_token_expire;
	}

	public void setCookie_token_expire(Timestamp cookie_token_expire) {
		this.cookie_token_expire = cookie_token_expire;
	}

	public Timestamp getReg_time() {
		return reg_time;
	}

	public void setReg_time(Timestamp reg_time) {
		this.reg_time = reg_time;
	}

	public Timestamp getLast_login_time() {
		return last_login_time;
	}

	public void setLast_login_time(Timestamp last_login_time) {
		this.last_login_time = last_login_time;
	}

	public static String getTableName() {
		return tableName;
	}

	public static void setTableName(String tableName) {
		User.tableName = tableName;
	}

}
